﻿using System.ComponentModel.DataAnnotations;

namespace MicroBlog.ViewModels
{
    public class LoginViewModel
    {
        [Required(ErrorMessage = "账号不能为空")]
        [Display(Name = "账号")]
        [EmailAddress(ErrorMessage = "账号不存在或者无效")]
        public string Account { get; set; }

        [Required(ErrorMessage = "密码不能为空")]
        [DataType(DataType.Password)]
        [Display(Name = "密码")]
        public string Password { get; set; }

        [Display(Name = "Remember me?")]
        public bool RememberMe { get; set; } = false;
    }
}
